<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>14-鼠标事件对象</title>
    <style>
        body{
            height:3000px;
            background-color: brown;
        }
    </style>
</head>
<body>
    <div style="height: 1000px; background-color: bisque;"></div>
    <div style="height: 1000px; background-color: aqua;"></div>
    <script>
        /* 
             clientY : 鼠标在可视区的y坐标
             pageY: 鼠标在文档中的y坐标(加上被卷去的头部)
             screenY: 鼠标在屏幕顶端的距离
        */
       document.addEventListener('click',function(e){
           console.log("clientX:------" + e.clientX,e.clientY);
           console.log("pageX:----" + e.pageX, e.pageY);
           console.log("screenY:----" + e.screenX, e.screenY);
       });
    </script>
</body>
</html>